import time


class Timer:
    def __init__(self):
        self.start = int(time.time())
        self.last_tick = self.start

    def elapsed(self, secs):
        now = int(time.time())
        return now - self.last_tick >= secs

    def tick(self, *message):
        now = int(time.time())
        m, s = divmod(now - self.start, 60)
        h, m = divmod(m, 60)
        print(f"[{h:0>2d}:{m:0>2d}:{s:0>2d}]", *message)
        self.last_tick = now
